package com.ruoyi.mdm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mdm.mapper.SkuChannelScoreMapper;
import com.ruoyi.mdm.domain.SkuChannelScore;
import com.ruoyi.mdm.service.ISkuChannelScoreService;

/**
 * 产品指标渠道评分Service业务层处理
 *
 * @author shiseido
 * @date 2025-03-07
 */
@Service
public class SkuChannelScoreServiceImpl implements ISkuChannelScoreService {
    @Autowired
    private SkuChannelScoreMapper skuChannelScoreMapper;

    /**
     * 查询产品指标渠道评分
     *
     * @param id 产品指标渠道评分主键
     * @return 产品指标渠道评分
     */
    @Override
    public SkuChannelScore selectSkuChannelScoreById(Long id) {
        return skuChannelScoreMapper.selectSkuChannelScoreById(id);
    }

    /**
     * 查询产品指标渠道评分列表
     *
     * @param skuChannelScore 产品指标渠道评分
     * @return 产品指标渠道评分
     */
    @Override
    public List<SkuChannelScore> selectSkuChannelScoreList(SkuChannelScore skuChannelScore) {
        return skuChannelScoreMapper.selectSkuChannelScoreList(skuChannelScore);
    }

    /**
     * 新增产品指标渠道评分
     *
     * @param skuChannelScore 产品指标渠道评分
     * @return 结果
     */
    @Override
    public int insertSkuChannelScore(SkuChannelScore skuChannelScore) {
        return skuChannelScoreMapper.insertSkuChannelScore(skuChannelScore);
    }

    /**
     * 修改产品指标渠道评分
     *
     * @param skuChannelScore 产品指标渠道评分
     * @return 结果
     */
    @Override
    public int updateSkuChannelScore(SkuChannelScore skuChannelScore) {
        return skuChannelScoreMapper.updateSkuChannelScore(skuChannelScore);
    }

    /**
     * 批量删除产品指标渠道评分
     *
     * @param ids 需要删除的产品指标渠道评分主键
     * @return 结果
     */
    @Override
    public int deleteSkuChannelScoreByIds(Long[] ids) {
        return skuChannelScoreMapper.deleteSkuChannelScoreByIds(ids);
    }

    /**
     * 删除产品指标渠道评分信息
     *
     * @param id 产品指标渠道评分主键
     * @return 结果
     */
    @Override
    public int deleteSkuChannelScoreById(Long id) {
        return skuChannelScoreMapper.deleteSkuChannelScoreById(id);
    }
}
